package com.lzl.proxy.jdk.s;

import com.lzl.proxy.jdk.Hello;
import com.lzl.proxy.jdk.HelloInterface;

public class HelloProxy implements HelloInterface {
    private HelloInterface helloInterface = new Hello();
    @Override
    public void sayHello() {
        System.out.println("Before invoke sayHello" );
        helloInterface.sayHello();
        System.out.println("After invoke sayHello");
    }

    @Override
    public void see() {
    }

    @Override
    public String say(String msg) {
        return null;
    }

    @Override
    public String say1(String msg, int i) {
        return null;
    }

    public static void main(String[] args) {
        HelloProxy helloProxy = new HelloProxy();
        helloProxy.sayHello();
    }
}
